import request from '@/utils/request'
// 获取产品树
export function getPdsConfAssetTree(params) {
  return request({
    url: '/api/pds/pdsConfAsset/getPdsConfAssetTree',
    method: 'get',
    params
  })
}
export function getModelNotWritePcc(params) {
  return request({
    url: '/api/pds/pdsFileModelPcc/getModelNotWritePcc',
    method: 'get',
    params
  })
}
export function saveModelPCC(data) {
  return request.postJson({
    url: '/api/pds/pdsFileModelPcc/saveModelPCC',
    data
  })
}
export function getFilePcc(params) {
  return request({
    url: '/api/pds/pdsFileModelPcc/getFilePCC',
    method: 'get',
    params
  })
}
// pgf获取目录树
export function getdirectorytree(params) {
  return request({
    url: '/api/pds/pdsConfDocDirectory/get-directory-tree',
    method: 'get',
    params
  })
}
// pgf获取文件列表
export function getfilelist(data) {
  return request.post({
    url: '/api/pds/pdsConfDocDirectory/get-file-list',
    data
  })
}
// 更新文件接口
export function updateFile(data) {
  return request({
    url: '/api/pds/pdsConfDocDirectory/update-file',
    method: 'post',
    data
  })
}
